<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="help">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_vote('question')}</ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>“{$question['title']}”Listagem de opções</h2>
					<ul class="filter">
						<li>
							<a href="options.php?action=add&question_id={$question_id}">Adicionar opção</a>
						</li>
						<li>
							<a href="question.php">Lista de questões</a>
						</li>
					</ul>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr>
						<th width="40">ID</th>
						<th width="300">Nome</th>
						<th width="50">Status</th>
						<th width="50">Ordenar</th>
						<th width="200">Operação</th>
					</tr>
					<!--{if !$options_list}-->
					<tr>
						<td colspan=5 align="center">sem opções</td>
					</tr>
					<!--{/if}-->
					<!--{loop $options_list $index $one}-->
						<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
							<td>{$one['id']}</td>
							<td>${$one['is_input'] ? '<font color="red">'.$one['name'].'</font>' : $one['name']}</td>
							<td>${$one['is_show'] ? 'display' : 'hide'}</td>
							<td>{$one['order']}</td>
							<td class="op">
								${$one['is_show'] ? '<a href="options.php?action=change_show&question_id=' . $one['question_id'] . '&id='.$one['id'].'&value=0">Esconder</a>' : '<a href="options.php?action=change_show&question_id=' . $one['question_id'] . '&id='.$one['id'].'&value=1">Mostrar</a>'}
								<a href="options.php?action=edit&question_id={$one['question_id']}&id={$one['id']}">Editar</a>
								<a href="javascript: if(confirm('sure to delete？')) window.location.href = 'options.php?action=del&question_id={$one['question_id']}&id={$one['id']}'">Deletar</a>
							</td>
						</tr>
						${$one['is_br'] ? '<tr><td colspan=5>&nbsp;</td></tr>' : ''}
					<!--{/loop}-->
                    </table>
				</div>
			</div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include footer}-->